package o;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public abstract class ape extends aqi implements apd {
    public ape() {
        super("com.google.android.gms.common.internal.ICertData");
    }

    public static apd ˏ(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ICertData");
        if (queryLocalInterface instanceof apd) {
            return (apd) queryLocalInterface;
        }
        return new apg(iBinder);
    }

    protected final boolean ˏ(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
        switch (i) {
            case 1:
                IInterface ˏ = ˏ();
                parcel2.writeNoException();
                aqm.ˎ(parcel2, ˏ);
                break;
            case 2:
                int ˋ = ˋ();
                parcel2.writeNoException();
                parcel2.writeInt(ˋ);
                break;
            default:
                return false;
        }
        return true;
    }
}
